import request from '@/config/axios'


// 波次单
export const WaveApi = {
  // 查询波次单
  generateWave: async (params: any) => {
    return await request.get({ url: `/fulfill/order/generate-wave`, params })
  },

  // // 查询履约单明细详情
  // getOrderItem: async (id: number) => {
  //   return await request.get({ url: `/fulfill/order-item/get?id=` + id })
  // },

  // // 新增履约单明细
  // createOrderItem: async (data: OrderItemVO) => {
  //   return await request.post({ url: `/fulfill/order-item/create`, data })
  // },

  // // 修改履约单明细
  // updateOrderItem: async (data: OrderItemVO) => {
  //   return await request.put({ url: `/fulfill/order-item/update`, data })
  // },

  // // 删除履约单明细
  // deleteOrderItem: async (id: number) => {
  //   return await request.delete({ url: `/fulfill/order-item/delete?id=` + id })
  // },

  // //创建发货单
  // createOrder: async (params: any) => {
  //   return await request.get({ url: `/fulfill/order-item/create/order`, params })
  // },

  // 导出履约单明细 Excel
  exportWave: async (params) => {
    return await request.download({ url: `/fulfill/order/export-wave`, params })
  }
}